<?php

class Servico extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('Servico_model');
        $this->Autenticacao_model->isAdmin();
    }

    public function index() {
        $data['servicos'] = $this->Servico_model->getAll();
        $this->load->view('admin/servico/listar', $data);
    }
}

?>
